package SQLx::Querylet::Plugin::mysql;

use strict;
use warnings;

use base qw( SQL::Querylet::Plugin );

sub limit {
    my $self = shift;
    my ($n) = @_;
    return {
        sql => "LIMIT $n",
        after => 'ORDER',
    };
}

sub index_hint {
    my $self = shift;
    my ($n) = @_;
    return {
        sql => "USE INDEX ($n)",
        after => 'JOIN',
    };
}

1;

